package chixing.day10.innerclass;

public class Customer {
    public int custId;//member variable 成员变量：存在的意义就是为了服务Custromer类
    public String custName;
    //成员内部类，存在的意义也是服务与Custrom类
    public class CustomerAddress{
        public String custPeovince;//省
        public String custCity;//市
        public String custArea;//区
        public String suctStreet;//街道
        public String custDetailAddress;//详细地址

        public CustomerAddress(){}
        public CustomerAddress(String custPeovince, String custCity, String custArea, String suctStreet, String custDetailAddress) {
            this.custPeovince = custPeovince;
            this.custCity = custCity;
            this.custArea = custArea;
            this.suctStreet = suctStreet;
            this.custDetailAddress = custDetailAddress;
        }


    }

    public void shopping(){
        System.out.println("customer shopping ");
    }
    public Customer(){}
    public Customer(int custId, String custName) {
        this.custId = custId;
        this.custName = custName;
    }

    public int getCustId() {
        return custId;
    }

    public void setCustId(int custId) {
        this.custId = custId;
    }

    public String getCustName() {
        return custName;
    }

    public void setCustName(String custName) {
        this.custName = custName;
    }
}
